package com.stgy.lease.web.admin.mapper;

import com.stgy.lease.model.domain.ApartmentFacility;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.stgy.lease.model.domain.FacilityInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author lingx
* @description 针对表【apartment_facility(公寓&配套关联表)】的数据库操作Mapper
* @createDate 2024-08-28 11:00:28
* @Entity com.stgy.lease.model.domain.ApartmentFacility
*/
@Mapper
public interface ApartmentFacilityMapper extends BaseMapper<ApartmentFacility> {

    void deleteByApartmentInfoId(Long id);

    void insertBatchIds(@Param("id") Long id,@Param("facilityInfoIds") List<Long> facilityInfoIds);

    List<FacilityInfo> selectFacilityInfosByApartmentId(Long apartmentId);
}




